import React from 'react';
import {connect} from 'react-redux';
import { withRouter } from 'react-router-dom'
import hoc from "./hoc";
import Css from "../../../../assets/css/pc/nav/index.css";
import IconFont from "../../../../components/iconfont";
const outLogin = hoc((props)=>{

    return(
        <div className={Css["PopoverContent"]}>
            <div className={Css["PopoverContentLi"]} onClick={props.goPage.bind(this,'personal')}>
                <IconFont className={Css["userIcn"]} type="icon-gatmgrgerenzhongxin" />
                个人中心
            </div>
            <div className={Css["PopoverContentLi"]} onClick={props.outLogin}>
                <IconFont className={Css["userIcn"]} type="icon-gatmgrchahao" />
                退出
            </div>
        </div>
    )
})
export default connect((state)=>{
    return{
        state:state
    }
})(withRouter(outLogin))
